﻿// STATS MODULE
//      Luca Puccini
//      Marco Cornolti
//      Michele Sottile
//      Matteo Parchi
   
// GENERAL FEEDBACK OBJECT

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Stats.Objects
{
    /// <summary>
    /// Represents GenericFeedback object returned when requested a generic feedback for the userID user
    /// </summary>
    public class GeneralFeedback
    {
        /// <summary>
        /// The User ID
        /// </summary>
        public int UserID { get; set; }
        
        /// <summary>
        /// Global vote for the user
        /// </summary>
        public double Vote { get; set; }
        
        /// <summary>
        /// General punctuality feedback for the user
        /// </summary>
        public double Punctuality { get; set; }
        
        /// <summary>
        /// General reliability feedback for the user
        /// </summary>
        public double Reliability { get; set; }
        
        /// <summary>
        /// Constructor for the GeneralFeedback object with userID, general vote, general puncutality and general reliability
        /// </summary>
        /// <param name="user_id">The user ID</param>
        /// <param name="general_vote">General vote</param>
        /// <param name="general_punctuality">General punctuality</param>
        /// <param name="general_reliability">General reliability</param>
        public GeneralFeedback (int user_id, double general_vote, double general_punctuality, double general_reliability)
        {
            UserID = user_id;
            Vote = general_vote;
            Punctuality = general_punctuality;
            Reliability = general_reliability;
        }

   }
}
